<%--
    Document   : index
    Author     : Elodie Mazuel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<!-- Ne pas oublier cette ligne sinon tous les tags de la JSTL seront ignorés ! -->
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">       
        <title>boutique de jeux video</title>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
        <script type="text/javascript" src="js/slimbox2.js"></script>
        <link rel="stylesheet" href="css/slimbox2.css" type="text/css" media="screen" />
        <link rel="stylesheet" type="text/css" href="style.css"/>

        <!-- autocompletion -->
        <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
        <!-- fin autocompletion -->

        <script type="text/javascript" src="js/fonction.js"></script>     
    </head>
    <body>

        <div id="main_container">
            <!-- header -->
            <div id="header"><%@include file="header.jsp" %></div>

            <c:if test="${connexion}">
                <!-- barre de menu -->
                <div id="menu_tab"><%@include file="menu.jsp" %></div>
                <!-- menu de gauche -->
                <div class="left_content"><%@include file="gauche.jsp" %></div>
                <!-- centre -->
                <div class="center_content">
                    <c:choose>
                        <c:when test="${param['action'] == 'detail'}" >
                            <%@include file="detail.jsp" %>
                        </c:when>
                        <c:otherwise>
                            <c:choose>
                                <c:when test="${param['action'] == 'panier'}" >
                                    <%@include file="panier.jsp" %>
                                </c:when>
                                <c:otherwise>
                                    <c:choose>
                                        <c:when test="${param['action'] == 'jeuxByCat'}" >
                                            <%@include file="jeuxByCat.jsp" %>
                                        </c:when>
                                        <c:otherwise>
                                            <c:choose>
                                                <c:when test="${param['action'] == 'listUser'}" >
                                                    <%@include file="utilisateurs.jsp" %>
                                                </c:when>
                                                <c:otherwise>
                                                    <c:choose>
                                                        <c:when test="${param['action'] == 'rechercheDetail'}" >
                                                            <%@include file="rechercheDetail.jsp" %>
                                                        </c:when>
                                                        <c:otherwise>
                                                            <c:choose>
                                                                <c:when test="${param['action'] == 'allProduits'}" >
                                                                    <%@include file="allProduits.jsp" %>
                                                                </c:when>
                                                                <c:otherwise>
                                                                    <%@include file="centre.jsp" %>
                                                                </c:otherwise>
                                                            </c:choose>
                                                        </c:otherwise>
                                                    </c:choose>
                                                </c:otherwise>
                                            </c:choose>
                                        </c:otherwise>
                                    </c:choose>
                                </c:otherwise>
                            </c:choose>

                        </c:otherwise>
                    </c:choose>
                </div>
                <!-- menu de droite -->
                <div class="right_content"><%@include file="droite.jsp" %></div>
            </c:if>
            <c:if test="${!connexion}">
                <%@include file="connexion.jsp" %>
            </c:if>
            <!-- bas -->
            <div class="footer"><%@include file="bas.jsp" %></div>
        </div>

    </body>
</html>